package unit12;

import java.util.Calendar;
import java.util.GregorianCalendar;

public class PairTest2 {
	public static void main(String[] args) {
		GregorianCalendar[] birthday={
				new GregorianCalendar(1906,Calendar.DECEMBER,9),
				new GregorianCalendar(1923,Calendar.DECEMBER,10),
				new GregorianCalendar(1946,Calendar.DECEMBER,11),
				new GregorianCalendar(1966,Calendar.DECEMBER,12),
		};
		Pair<GregorianCalendar> mm=ArrayAlg.minmax(birthday);
		System.out.println("min="+mm.getFirst().getTime());
		System.out.println("max="+mm.getSecond().getTime());
		
	}
}
